﻿using Puppy.DependencyInjection;
using System;
using System.Diagnostics.CodeAnalysis;

namespace Puppy
{
    public class ServiceProviderAccessorContext : IServiceProviderAccessor
    {
        public IServiceProvider ServiceProvider { get; }

        public ServiceProviderAccessorContext([NotNull] IServiceProvider serviceProvider)
        {
            Check.NotNull(serviceProvider, nameof(serviceProvider));

            ServiceProvider = serviceProvider;
        }
    }
}